<?php

class syslogistics_api_dlvpoint_delete {

    public $apiDescription = "删除送货点";

    public function getParams()
    {
        $return['params'] = array(
            'id' =>['type'=>'string','valid'=>'required', 'description'=>'送货点ID','default'=>'','example'=>'10'],
        );

        return $return;
    }

    public function delete($params)
    {
        $objMdldlvpoint = app::get('syslogistics')->model('delivery_point');
        return $objMdldlvpoint->delete(['id'=>$params['id']]);
    }
}

